import 'package:flutter/material.dart';

class MyApp7 extends StatelessWidget {
  const MyApp7({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
            appBar: AppBar(
              title: const Text('expanded'),
              backgroundColor: Colors.black26,
              centerTitle: true,
            ),
            body: Center(
              child: Container(
                height: 100,
                child: Row(
                  children: [
                    Container(
                      width: 40,
                      color: Colors.blue,
                    ),
                    Expanded(
                        flex: 2,
                        child: Container(
                          color: Colors.amber,
                        )),
                    Expanded(
                        flex: 7,
                        child: Container(
                          color: Colors.black26,
                        )),
                    Expanded(
                        flex: 3,
                        child: Container(
                          color: Colors.black54,
                        )),
                  ],
                ),
              ),
            )));
  }
}
